Mistakes in Agile Web Programming with Ruby on Rails

Posted on September 14, 2006 in Ruby

Enclosed are snippets from Agile Web Programming with Ruby on Rails.

File 65:

%r{^http:.+\.(gif|jpg|png)$}i

changed to

%r{\.(gif|jpg|png)$}i

Now i can save the pictures in the projects/images folder as suposed in the book and not somewhere at the internet.

File 67:

:confirm => "Are you sure?" %>

changed to

:confirm => "Are you sure?", 
:post => true %>

Now i can delete the products too.